package com.cjx.minio.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 *@Author cjunxian
 *@date 2020/09/24  11:09:56
 *@doc 文件管理的传输类
 *@version 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value="FileManagementDTO", description="文件管理DTO")
public class FileManagementDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件管理主键ID")
    private String fileId;

    @ApiModelProperty("文件名称")
    private String fileName;

    @ApiModelProperty("文件类型")
    private String fileType;

    @ApiModelProperty("是否需要预览: 0->不可以预览; 1->可以预览")
    private Long isNeedPreview;

    @ApiModelProperty("预览相对路径")
    private String relativePath;

    @ApiModelProperty("预览路径,真实访问路径")
    private String previewPath;

    @ApiModelProperty("下载路径")
    private String downloadPath;

    @ApiModelProperty("文件大小")
    private String fileSize;

}
